package com.hm.springcloud.oltu;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.context.embedded.jetty.JettyEmbeddedServletContainerFactory;
import org.springframework.boot.web.support.SpringBootServletInitializer;
import org.springframework.context.annotation.Bean;

/**
 * @author shishun.wang
 * @date 上午10:48:07 2016年11月22日
 * @version 1.0
 * @describe 
 */
//@EnableAutoConfiguration
@SpringBootApplication(scanBasePackages="com.hm.springcloud.oltu")
public class OltuApplication extends SpringBootServletInitializer{
	
//	@Bean
//	public EmbeddedServletContainerFactory servletContainer() {
//	    return new TomcatEmbeddedServletContainerFactory();
//	}
	
	@Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
        return application.sources(OltuApplication.class);
    }

	public static void main(String[] args) {
		SpringApplication.run(OltuApplication.class, args);
	}
}
